﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmbeddedLanguage;

namespace EmbeddedLangTest
{
    public class SelfReferentialTest// : ICanDo<SelfReferentialTest>
    {

        public int Width;
        public int Height;
        public int Area;

        #region ICanDo
        public List<Action<SelfReferentialTest>> OnNew{set{value.ForEach(action => action(this));}}
        public SelfReferentialTest Do(List<Action<SelfReferentialTest>> actions) { actions.ForEach(action => action(this)); return this; }
        #endregion
    }

    
}
